<?php

include "fonctions.php";
head_html("Vitrine");
en_tete();
?>

	<div id="contenu">
		<?php
			menu_lateral_droit();
		?>
		<div id="texte">
			<?php
				vousetesici("");
				
				db_connect();
				
				$req = "SELECT path FROM LMLP.articles WHERE etat ='Vitrine';";
				
				$result = mysql_query($req) or die (mysql_error());
				$nb = mysql_num_rows($result);
				if ($nb == 0)
				{
					echo "<p>Aucun jeu</p>";
				}
				
				
				while ($fichier = mysql_fetch_assoc($result)) {
				   $tabfich = file($fichier['path']); 
				   foreach($tabfich as $ligne) echo "$ligne";
				}
			?>
			
		</div>
	</div>
	<?php
		pied_page();
	?>
</body>
</html>
